package com.yunxie.novelservice.domain.convert;

import com.yunxie.novelservice.domain.entity.NovelDetailsBo;
import com.yunxie.novelservice.domain.entity.NovelsBo;
import com.yunxie.novelservice.infra.basic.entity.NovelDetails;
import com.yunxie.novelservice.infra.basic.entity.Novels;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 小说详情BO转换
 */
@Mapper
public interface NovelsBoConverter {
    NovelsBoConverter INSTANCE =  Mappers.getMapper(NovelsBoConverter.class);

    NovelsBo convertEntityToBo(Novels novels);
    Novels convertBoToEntity(NovelsBo novelsBo);

    List<NovelsBo> convertEntityListToBoList(List<Novels> novelsList);
}
